﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" EnableEventValidation="false" CodeFile="CPKbyPID_Week.aspx.cs" Inherits="StatisticData_CPKStatistic_CPKbyPID_Week" Title="按日历周查看CPK趋势" %>

<%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>        
        <div>
            <br />
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
            <div style="float:left; width: 80%;">
            <asp:Label ID="Label3" runat="server" Text="选择要查询的日历周："></asp:Label>
            <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True">
            </asp:DropDownList><br />
            <br />
            <table width="100%">
                <tr>
                    <td >客户名称：</td>
                    <td>
                        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                            Height="22px" onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
                            >
                        </asp:DropDownList>
                    </td>
                    <td >产品类型：</td>
                    <td>
                        <asp:DropDownList ID="DropDownList3" runat="server" Height="22px" >
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            </div>
            </ContentTemplate>
            </asp:UpdatePanel>
            <br />
            <br /><asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
                Text="查 询" />&nbsp; <br />
        </div> 
        <div style="clear:left ">
            <br />
            <asp:Label ID="Label2" runat="server" Text="按日历周统计CPK情况："></asp:Label>
            <br />
            <br />
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
                AutoDataBind="true" PageToTreeRatio="1001" 
                ReportSourceID="CrystalReportSource1" BestFitPage="False" Height="800px" 
                Width="1080px" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
            </CR:CrystalReportSource>
            <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                GridLines="None" onpageindexchanging="GridView1_PageIndexChanging">
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <Columns>
                <asp:BoundField DataField="TestItemName" HeaderText="测试项" />
                <asp:BoundField DataField="DayTime" HeaderText="日历日" />
                <asp:BoundField DataField="Quantity" DataFormatString="{0:F3}" 
                    HeaderText="最大值的CPK" />
                <asp:BoundField DataField="Quantity1" DataFormatString="{0:F3}" 
                    HeaderText="最小值的CPK" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
            <br />
        </div> 
         <br />
            <br />
    </div>    
</asp:Content>

